//
//  UIViewController+TDSwizzle.m
//  TotalDemo
//
//  Created by gujian on 16/5/31.
//  Copyright © 2016年 gujian. All rights reserved.
//

#import "UIViewController+TDSwizzle.h"
#import <objc/runtime.h>

@implementation UIViewController (TDSwizzle)

+ (void)load
{
    method_exchangeImplementations(class_getInstanceMethod(self.class,@selector(hidesBottomBarWhenPushed)),class_getInstanceMethod(self.class, @selector(GQJ_HideBottomBarWhenPushed)));
}


- (BOOL)GQJ_HideBottomBarWhenPushed
{
    return self.navigationController && [self.navigationController.viewControllers indexOfObject:self];

}




@end
